<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./jquery-1.11.3.js"></script>
</head>
<body>
        <p id="d1" class="c1">窗前明月光</p>
        <p class="c2">地上鞋俩双</p>
        <p class="c1">天王盖地虎</p>
        <p>小鸡炖蘑菇</p>
        <p class="c2">地上鞋俩双</p>

        <script>
            $('[id]').css('color','red');
            $('[class=c1]').css('color','green')
            $('[class^=c]').css('text-align','center')
            $('[class$=1]').css('width','500px').css('background','red')
            $('[class*=2]').css('border','1px solid black')
            $('[id!=d1]').css('color','cyan')
        </script>

</body>
</html>